package com.lzm.ydpt.entity;

import android.os.Parcel;
import android.os.Parcelable;

public class AddressBook implements Parcelable {

    private String address;
    private String contacts;
    private String createTime;
    private int delFlag;
    private String detailedAddress;
    private int history;
    private long id;
    private double latitude;
    private double longitude;
    private long memberId;
    private String phone;
    private int status;
    private int type;
    private String updateTime;

    public AddressBook() {

    }

    protected AddressBook(Parcel in) {
        address = in.readString();
        contacts = in.readString();
        createTime = in.readString();
        delFlag = in.readInt();
        detailedAddress = in.readString();
        history = in.readInt();
        id = in.readLong();
        latitude = in.readDouble();
        longitude = in.readDouble();
        memberId = in.readLong();
        phone = in.readString();
        status = in.readInt();
        type = in.readInt();
        updateTime = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(address);
        dest.writeString(contacts);
        dest.writeString(createTime);
        dest.writeInt(delFlag);
        dest.writeString(detailedAddress);
        dest.writeInt(history);
        dest.writeLong(id);
        dest.writeDouble(latitude);
        dest.writeDouble(longitude);
        dest.writeLong(memberId);
        dest.writeString(phone);
        dest.writeInt(status);
        dest.writeInt(type);
        dest.writeString(updateTime);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<AddressBook> CREATOR = new Creator<AddressBook>() {
        @Override
        public AddressBook createFromParcel(Parcel in) {
            return new AddressBook(in);
        }

        @Override
        public AddressBook[] newArray(int size) {
            return new AddressBook[size];
        }
    };

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getContacts() {
        return contacts;
    }

    public void setContacts(String contacts) {
        this.contacts = contacts;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public int getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(int delFlag) {
        this.delFlag = delFlag;
    }

    public String getDetailedAddress() {
        return detailedAddress;
    }

    public void setDetailedAddress(String detailedAddress) {
        this.detailedAddress = detailedAddress;
    }

    public int getHistory() {
        return history;
    }

    public void setHistory(int history) {
        this.history = history;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    public long getMemberId() {
        return memberId;
    }

    public void setMemberId(long memberId) {
        this.memberId = memberId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }
}